#include "myfile.h"
#include <stdlib.h>

#define LOG "log.txt"

int main()
{
  My_FILE* fp = myfopen(LOG, "w");
  if(fp == NULL)
  {
    perror("myfopen\n");
    exit(-1);
  }
  
  //...

  myfclose(fp);

  return 0;
}
